Skip to content

Conversation

@alxkm
Copy link
Contributor

@alxkm alxkm commented Jul 24, 2025

Enhances PgVectorEmbeddingDimensionsTests with additional test cases covering edge scenarios:

  • Embedding model returning zero/negative dimensions
  • Explicitly setting zero/negative dimensions via builder
  • Improved test structure with Given-When-Then comments

Ensures all code paths in embeddingDimensions() method are properly tested.

@alxkm alxkm force-pushed the test/PgVectorEmbeddingDimensionsTests branch from e4d965f to 7f1ce23 Compare July 24, 2025 17:24
@ilayaperumalg ilayaperumalg self-assigned this Jul 25, 2025
@ilayaperumalg ilayaperumalg added this to the 1.1.0.M1 milestone Jul 25, 2025
@ilayaperumalg
Copy link
Member

@alxkm Thanks for the PR improving the test coverage.

}

public Builder frequencePenalty(Double frequencyPenalty) {
public Builder frequencyPenalty(Double frequencyPenalty) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is recently fixed via 128c45a

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for letting me know! I see that commit 128c45a addressed some of the issues.

However, this PR is specifically focused on improving test coverage for the PgVectorEmbeddingDimensionsTests class

I've cleaned up the branch to remove any unrelated commits and now it only contains the test improvements.

@alxkm alxkm force-pushed the test/PgVectorEmbeddingDimensionsTests branch from 38463e2 to 56f65c3 Compare July 25, 2025 12:01
@alxkm alxkm requested a review from ilayaperumalg July 25, 2025 12:03
@alxkm alxkm changed the title test: improve coverage PgVectorEmbeddingDimensionsTests test: improve coverage PgVectorEmbeddingDimensionsTests Aug 4, 2025
@alxkm
Copy link
Contributor Author

alxkm commented Aug 6, 2025

Hello @ilayaperumalg, I’ve fixed the incorrect data from the previous merge. Could you please take a look?

@sobychacko sobychacko merged commit 99733f4 into spring-projects:main Aug 6, 2025
2 checks passed
juntae6942 pushed a commit to juntae6942/spring-ai that referenced this pull request Aug 7, 2025
…jects#3907)

Enhances PgVectorEmbeddingDimensionsTests with additional test cases covering edge scenarios:

- Embedding model returning zero/negative dimensions
- Explicitly setting zero/negative dimensions via builder
- Improved test structure with Given-When-Then comments
- Ensures all code paths in embeddingDimensions() method are properly tested.

Signed-off-by: alxkm <[email protected]>
scionaltera pushed a commit to scionaltera/spring-ai that referenced this pull request Sep 3, 2025
…jects#3907)

Enhances PgVectorEmbeddingDimensionsTests with additional test cases covering edge scenarios:

- Embedding model returning zero/negative dimensions
- Explicitly setting zero/negative dimensions via builder
- Improved test structure with Given-When-Then comments
- Ensures all code paths in embeddingDimensions() method are properly tested.

Signed-off-by: alxkm <[email protected]>
chedim pushed a commit to couchbaselabs/spring-ai that referenced this pull request Sep 19, 2025
…jects#3907)

Enhances PgVectorEmbeddingDimensionsTests with additional test cases covering edge scenarios:

- Embedding model returning zero/negative dimensions
- Explicitly setting zero/negative dimensions via builder
- Improved test structure with Given-When-Then comments
- Ensures all code paths in embeddingDimensions() method are properly tested.

Signed-off-by: alxkm <[email protected]>
Willam2004 pushed a commit to Willam2004/spring-ai that referenced this pull request Oct 11, 2025
…jects#3907)

Enhances PgVectorEmbeddingDimensionsTests with additional test cases covering edge scenarios:

- Embedding model returning zero/negative dimensions
- Explicitly setting zero/negative dimensions via builder
- Improved test structure with Given-When-Then comments
- Ensures all code paths in embeddingDimensions() method are properly tested.

Signed-off-by: alxkm <[email protected]>
Signed-off-by: 家娃 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants